<?PHP
 session_start();
 include("admin/include/db.php");
 include("includes/function.php");
 
 $sqlBackground = mysql_query("SELECT * FROM software_employe_month  LIMIT 1");
 $software_employe_month = mysql_fetch_array($sqlBackground);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=TITLE_WEBSITE?>&nbsp;<?=$page_title;?></title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<center>
<div style="background:#179cc1; height:3px">&nbsp;</div>
<div style="width:990px;" align="center">
		<div id="header">
		<?php
    		include("includes/header.php");
   		?>
        </div>
    <div style="margin-top:20px;">
        <div style="margin-top:23px; margin-bottom:21px" align="center" >
    			<?php
									$sqlAdvertise = mysql_query("SELECT * FROM software_advertise 
																	WHERE 
																		banner_status = 'Y' AND banner = 2
																		ORDER BY RAND()
																		");
									$resAdvertise = mysql_fetch_array($sqlAdvertise);
							
									$imgPath  = 'admin/upload_images/'.$resAdvertise["banner_image"];
									
								?>
								
   		</div>
        <div style="float:left; width:100%;" >
        	<div align="left" >
            	<span class="headingOrange" ><strong><?php echo $page_heading; ?></strong></span>
            </div>
            <div class="text1"  align="left" style=" padding-top:18px; min-height:400px">
            	 <?php
        			$sqlBackground = mysql_query("SELECT * FROM software_main_banner  LIMIT 1");
					$resBackground = mysql_fetch_array($sqlBackground);
				?>
         		 <div class="text" style="float:left; width:65%"  >	
                 	<div align="left" >
            			<span class="heading" >Welcome to</span> &nbsp;<span class="headingOrange">E-Learning System!</span>
           		   </div>
					<div><br/><br />
						<?php echo nl2br($resBackground["banner_comments"]); ?>
                	</div>
                </div>
                 <div class="text" style="float:left;width:35%; " align="center"  >	
        			<div>
					<?php
									$sqlAdvertise = mysql_query("SELECT * FROM software_advertise 
																	WHERE 
																		banner_status = 'Y' AND banner = 3
																		ORDER BY RAND()
																		");
									$resAdvertise = mysql_fetch_array($sqlAdvertise);
							
									$imgPath  = 'admin/upload_images/'.$resAdvertise["banner_image"];
									
								?>
								<!--<a href="http://<?=$resAdvertise["banner_url"]?>" target="_blank" ><img border="0" src="<?=$imgPath?>"   /></a>-->
                	</div>
                    <div style="margin-top:20px">
                    <?php
									$sqlAdvertise = mysql_query("SELECT * FROM software_advertise 
																	WHERE 
																		banner_status = 'Y' AND banner = 3
																		ORDER BY RAND()
																		");
									$resAdvertise = mysql_fetch_array($sqlAdvertise);
							
									$imgPath  = 'admin/upload_images/'.$resAdvertise["banner_image"];
									
								?>
								
                    </div>
                </div>
                
                <div style="clear:both" ></div>
            </div>
        </div>
        <div style="clear:both"></div>
    </div>
    <div style="clear:both"></div>
       
</div>
<div id="footer">
  		<?php include("includes/footer.php")?>
   </div>
	</div>
</center>
</body>
</html>
